/* eslint-disable */
import Vue from 'vue'
import Router from 'vue-router'
import login from '@/view/login/index.vue'
import register from '@/view/login/register.vue'

import management from '@/view/management/index.vue'

import bookmark from '@/view/management/bookmark.vue'

import bookmarkType from '@/view/management/bookmarkType.vue'

import bookmarkDetail from '@/view/management/bookmarkDetail.vue'

import visitAnalysis from '@/view/management/visitAnalysis.vue'

import websiteAnalysis from '@/view/management/websiteAnalysis.vue'

import front from '@/view/front/index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/front',
      name: 'front',
      component: front
    },
    {
      path: '/management',
      name: 'management',
      component: management,
      children: [
        {
          path: 'bookmark',
       
          component: bookmark,
        },
        {
          path: 'bookmarkType',
          component: bookmarkType,
          props: true
        },
        {
          path: 'bookmarkDetail',
          component: bookmarkDetail,
          props: true
        },
        {
          path: 'bookmarkDetail/:id/:type',
          component: bookmarkDetail,
          props: true
        },
        {
          path: 'visitAnalysis',
          component: visitAnalysis,
          props: true
        },
        {
          path: 'websiteAnalysis',
          component: websiteAnalysis,
          props: true
        }
        
      ]
    },
    
  ]
})
